package com.firebird.app.kotlin.stock.ui.allocation_plan.contract

import com.firebird.app.kotlin.stock.base.BaseView
import com.firebird.app.kotlin.stock.data.MoneyRuleBean
import com.firebird.app.kotlin.stock.data.MultipleRuleBean
import retrofit2.Call


interface AllocationPlanContract {
    interface Model {
        fun getMoneyRuleData(bpType: Int): Call<MoneyRuleBean?>?
        fun getMultipleRuleData(bpType: Int): Call<MultipleRuleBean?>?
    }

    interface View : BaseView {
        override fun showLoading()
        override fun hideLoading()
        override fun onError(throwable: Throwable?)
        fun onSuccess(bean: MoneyRuleBean?)
        fun onSuccess(bean: MultipleRuleBean?)
    }

    interface Presenter {
        fun getMoneyRuleData(bpType: Int)
        fun getMultipleRuleData(bpType: Int)
    }
}